package com.woniuxy.mapper;

import com.woniuxy.entity.DTO.*;
import com.woniuxy.entity.User;

import java.util.List;

/**
* @author PC
* @description 针对表【user(用户信息表)】的数据库操作Mapper
* @createDate 2025-05-12 17:09:43
* @Entity com.woniuxy.entity.User
*/
public interface UserMapper {
    /**
     * 条件查询，不带条件查询所有
     */
    List<User> queryUser(User user);
    Boolean queryUserByAccount (String userAccount);
    boolean register(UserRegisterDTO userRegisterDTO);
    UserLoginDTO queryUserPasswordByAccount(String userAccount);
    UserImgAndNameAndPhone  queryUserInfo(Integer userId);
    void imgLoad(Integer id,String imgSrc);
    BackLoginDTO Backlogin(BackLoginDTO backLoginDTO);
    void updateAdministrator(BackLoginDTO backLoginDTO);
    BackLoginDTO  queryAdministratorInfo(Integer administratorId);
    void imgSrcLoad(Integer id, String imgSrc);
    void updateAdministratorPassword(UpdateAdministratorPasswordDTO updateAdministratorPasswordDTO);
    void updateLoginTime(Integer userId);




}
